﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { name: '登录', path: '/user/login', component: './user/Login' },
      { component: './404' },
    ],
  },
  { path: '/up/info/:platform/:id', name: '查看up主信息', hideInMenu: true ,icon: 'smile', component: './user/UpInfo'},
  { path: '/welcome', name: '首页', icon: 'smile', component: './Welcome' },
  { path: '/recommend', name: 'Up 主推荐', icon: "like", component: './MatchTableList' },
  { path: '/account/center', name: '用户中心', hideInMenu: true, icon: 'smile', component: './user/UserCenter' },
  {
    path: '/platform',
    name: '平台数据',
    icon: 'crown',
    access: 'canSuperUserOrAdmin',
    routes: [
      { path: '/platform/bilibili', name: '哔哩哔哩数据', icon: 'smile', component: './platform/BilibiliTableList' },
      { path: '/platform/douyin', name: '抖音数据', icon: 'smile', component: './platform/DouyinTableList' },
      { path: '/platform/kuaishou', name: '快手数据', icon: 'smile', component: './platform/KuaishouTableList' },
      { component: './404' },
    ],
  },
  { name: '用户管理', icon: 'table', path: '/list', component: './TableList', access: 'canAdmin' },
  { path: '/', redirect: '/welcome' },
  { component: './404' },
];
